﻿using Sunboxsoft.Bases.Web.Services;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Mvc;
using System.Web.WebPages;

namespace Sunboxsoft.Bases.Web.Controllers
{
    public class CommonController : Controller
    {
        public ActionResult MenuTree()
        {
            ViewBag.Menus = Sunboxsoft.Bases.Web.Models.MenuResolver.Resolve(new QueryService().QueryMenus(), HttpContext.Request.Url);
            return View();
        }

        public ActionResult Breadcrumb()
        {
            ViewBag.Breadcrumbs = Sunboxsoft.Bases.Web.Models.BreadcrumbResolver.Resolve(new QueryService().QueryMenus(), HttpContext.Request.Url);
            return View();
        }
    }
}
